﻿using Microsoft.AspNetCore.SignalR;

namespace Max.PH6_2009A.LowCode.API
{
    public class SignalrSendMessageMiddlware
    {
        RequestDelegate _next;
        IHubContext<SignalRChatHub> _hubContext;
        public SignalrSendMessageMiddlware(RequestDelegate next, IHubContext<SignalRChatHub> hubContext)
        {
            _next = next;
            _hubContext = hubContext;
        }
        public async Task InvokeAsync( HttpContext context)
        {
            await _next(context);
        }
    }
}
